cmake_minimum_required(VERSION 3.10)
project(DlOpenDemo C)

add_library(a SHARED suba.c)
add_library(b SHARED subb.c)
add_executable(main main.c)
target_link_libraries(main dl)